package com.bdqn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.entity.OmsOrder;
import com.bdqn.entity.allParams.PreSubmitParam;
import com.bdqn.entity.allParams.SkuInfos;
import com.bdqn.entity.responseDate.order.PreSubmitDto;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author hunter
 * @since 2022-04-30
 */
public interface OmsOrderService extends IService<OmsOrder> {
    PreSubmitDto preSubmitDto(SkuInfos[] skuInfos,Long userId);

    OmsOrder addOmsOrder(PreSubmitParam preSubmitParam);

    OmsOrder getOrderByOderNo(String orderNo,Long userId);

    List<OmsOrder> getOrderByUserId(Long id);
  //删除订单 通过订单编号
    boolean delOrder(String orderNo, Long id);
}
